package com.techstar.api.service;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 
 * @author EinIce
 * @description 接口配置初始化
 * @date 2021年7月16日
 *
 */
@Configuration
public class ConfigProperties {
//	roma认证-gis
	@ConfigurationProperties(prefix = "traffic.roma-api-gis")
	@Bean(name = "roma-api-gis")
	public GateWayApiProperties romaApiProperties() {
		return new GateWayApiProperties();
	}

	
	//——————————————————————————————2.1———————————————————————————————————————
	
//	1.1.1 出租车实时车辆位置信息
	@ConfigurationProperties(prefix = "traffic.api.trv")
	@Bean(name = "trv")
	public TrafficApiProperties trvApiProperties() {
		return new TrafficApiProperties();
	}

	//	1.1.3 出租车热力图信息
	@ConfigurationProperties(prefix = "traffic.api.trh")
	@Bean(name = "trh")
	public TrafficApiProperties trhApiProperties() {
		return new TrafficApiProperties();
	}
	//	1.1.4 出租车当前时间某行政区OD分布
	@ConfigurationProperties(prefix = "traffic.api.trdo")
	@Bean(name = "trdo")
	public TrafficApiProperties trdoApiProperties() {
		return new TrafficApiProperties();
	}

	//	1.1.5 网约车实时车辆位置信息
	@ConfigurationProperties(prefix = "traffic.api.crv")
	@Bean(name = "crv")
	public TrafficApiProperties crvApiProperties() {
		return new TrafficApiProperties();
	}

	//	1.1.7 公交车实时车辆位置信息
	@ConfigurationProperties(prefix = "traffic.api.brbg")
	@Bean(name = "brbg")
	public TrafficApiProperties brbgApiProperties() {
		return new TrafficApiProperties();
	}

	//	1.1.8 公交车热力图信息
	@ConfigurationProperties(prefix = "traffic.api.brh")
	@Bean(name = "brh")
	public TrafficApiProperties brhApiProperties() {
		return new TrafficApiProperties();
	}

	//	1.1.9 公交车当前时间某行政区OD分布
	@ConfigurationProperties(prefix = "traffic.api.btdo")
	@Bean(name = "btdo")
	public TrafficApiProperties btdoApiProperties() {
		return new TrafficApiProperties();
	}
	//	1.1.10 检测点位置信息
	@ConfigurationProperties(prefix = "traffic.api.rmd")
	@Bean(name = "rmd")
	public TrafficApiProperties rmdApiProperties() {
		return new TrafficApiProperties();
	}
	//	1.1.11 摄像头点位置信息
	@ConfigurationProperties(prefix = "traffic.api.rtmv")
	@Bean(name = "rtmv")
	public TrafficApiProperties rtmvApiProperties() {
		return new TrafficApiProperties();
	}
	//	1.1.12 道路事件信息
	@ConfigurationProperties(prefix = "traffic.api.rte")
	@Bean(name = "rte")
	public TrafficApiProperties rteApiProperties() {
		return new TrafficApiProperties();
	}

	

}
